package com.db.bean;

import java.sql.Date;

/**
 * JDBCBean是用到了一种编程思想、
 * ORM思想（Object relational mapping）对象关系映射
 * 一张表对应一个类
 * 一条记录对应类的一个对象
 * 一个字段对应一个属性
 * @author 28102
 *
 */
public class User {
	int id;
	String username;
	String password;
	String name;
	String role;
    int president_id;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getRole() {
		return role;
	}
	public void setRole(String role) {
		this.role = role;
	}
	public int getPresident_id() {
		return president_id;
	}
	public void setPresident_id(int president_id) {
		this.president_id = president_id;
	}
	public User(int id, String username, String password, String name, String role, int president_id) {
		super();
		this.id = id;
		this.username = username;
		this.password = password;
		this.name = name;
		this.role = role;
		this.president_id = president_id;
	}
	public User() {
		super();
		// TODO Auto-generated constructor stub
	}
	@Override
	public String toString() {
		return "User [id=" + id + ", username=" + username + ", password=" + password + ", name=" + name + ", role="
				+ role + ", president_id=" + president_id + "]";
	}
	
}
